package com.wz.service.impl;

import com.wz.entity.Dep;
import com.wz.mapper.DepMapper;
import com.wz.service.DepService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DepServiceImpl implements DepService {
    @Autowired
    private DepMapper depMapper;


    @Override
    public List<Dep> findDep() {
        return depMapper.findDep();
    }

    @Override
    public int save(Dep dep) {
        return depMapper.saveDep(dep);
    }

    @Override
    public Integer delete(String empno) {
        return depMapper.deleteDep(empno);
    }
}
